//
//  NewsModel.m
//  WanCaiC8
//
//  Created by tangang on 2018/4/21.
//  Copyright © 2018年 tangang. All rights reserved.
//

#import "NewsModel.h"

@implementation NewsModel

- (void)setReleaseTime:(NSString *)ReleaseTime{
    NSArray *str=[ReleaseTime componentsSeparatedByString:@"."];
    if (str.count>0) {
        ReleaseTime=str[0];
    }
    str=[ReleaseTime componentsSeparatedByString:@"+"];
    if (str.count>0) {
        ReleaseTime=str[0];
    }
//    NSDate *date=[TGTools dateFormatter:@"yyyy-MM-dd'T'HH:mm:ss" andString:ReleaseTime];
//    _ReleaseTime=[TGTools dateFormatter:@"MM-dd HH:mm" andDate:date];
    _ReleaseTime = [[TGToolForDateFormatter shareInstance] userVisibleDateTimeStringForRFC3339DateTimeString:ReleaseTime];
    
    
}

@end
